<form id="pagerForm" method="post" action="org/list">
	<input type="hidden" name="currentPage" value="${BeanList.currentPage}" />
	<input type="hidden" name="pageSize" value="${BeanList.pageSize}" />
</form>


<div class="pageHeader">
 

	
	<form onsubmit="return navTabSearch(this);" action="org/list" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					结构名称：<input type="text" name="name" value="${Bean.name}"/>
				</td>
				
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="org/toAdd" target="navTab"><span>添加</span></a></li>
<!-- 			<li><a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="org/toAdd?orgId=${organization.organizationId}" target="navTab"><span>修改</span></a></li> -->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="5%">编号</th>
				<th width="20%">机构名称</th>
				<th width="10%">标题</th>
				<th width="20%">机构详细地址</th>
				<th width="10%">负责人</th>
				<th width="10%">状态</th>
				<th width="5%">是否删除</th>
				<th width="20%">操作</th>
			</tr>
		</thead>
		<tbody>
			<#list BeanList.data as organization> 
			<tr target="sid_user" rel="1">
				<td>${organization.organizationId}</td>
				<td>${organization.name}</td>
				<td>${organization.title}</td>
				<td>${organization.addrName}</td>
				<td>${organization.userName}</td>
				<td>
				<#if organization.status=1>审核中</#if>
				<#if organization.status=2><span style="color:blue">审核通过</span></#if>
				<#if organization.status=3><span style="color:red">审核未通过</span></#if>
				</td>
				
				<td>
				<#if organization.isDel=1>正常</#if>
				<#if organization.isDel=2><span style="color:red">已删除</span></#if>
				</td>
				
				<td>
				  <a  target="navTab" href="org/toAdd?orgId=${organization.organizationId}">编辑</a>&nbsp;
				<#if organization.isDel =1>  
				   <a target="ajaxTodo" href="org/updateOrgStatus?orgId=${organization.organizationId}&isDel=2" >删除</a>&nbsp;
				   <#if organization.status =1>
				   <a target="ajaxTodo" href="org/updateOrgStatus?orgId=${organization.organizationId}&status=2" >审核通过</a>&nbsp;&nbsp;
				   <a target="ajaxTodo" href="org/updateOrgStatus?orgId=${organization.organizationId}&status=3" >审核不通过</a>
				  </#if> 
				   <#if organization.status =2>
				   <a target="ajaxTodo" href="org/updateOrgStatus?orgId=${organization.organizationId}&status=3" >审核不通过</a>
				  </#if>
				   <#if organization.status =3>
				   <a target="ajaxTodo" href="org/updateOrgStatus?orgId=${organization.organizationId}&status=2" >审核通过</a>&nbsp;&nbsp;
				  </#if>
				 <#else> 
				   <a target="ajaxTodo" href="org/updateOrgStatus?orgId=${organization.organizationId}&isDel=1" >正常</a>&nbsp;
				</#if>
			</td>
			</tr>
		</#list>

		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共${BeanList.totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="200" numPerPage="20" pageNumShown="10" currentPage="1"></div>
	</div>
</div>
